import express from "express";

const router = express.Router();

router.get("/list", (req, res) => {
  res.header("Conten-Type", "application/json");
  res.send({
    code: 200,
    data: {
      total: 20,
      list: [
        {
          id: 1,
          name: "商品1",
          price: 100,
        },
        {
          id: 2,
          name: "商品2",
          price: 200,
        },
      ],
    },
  });
});

export default router;
